package BookTest;

public class C9Commodity {
    private final double amount=580;
    private int number;
    private final double discount=0.8;


    public C9Commodity() {}
    public C9Commodity( int number) {
        this.number = number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
    public int getNumber(){
        return number;
    }

    public void pay(int number){
       System.out.println(this.amount);
    }

    public void pay(int number,boolean toLowerCase){
        double total = amount*number*discount;
        System.out.println(total);
    }
}
